package com.ops.service.ns.system.beans;

import java.util.Map;

import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;



public class MenuMBean {

	private String menuURL = "/include/content/welcome.jspx";
	private String menuId;
	
	
	public String getMenuURL() {
		return menuURL;
	}

	public void setMenuURL(String menuURL) {
		this.menuURL = menuURL;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public void navigateMenu(ActionEvent event) {
		ExternalContext eContext =FacesContext.getCurrentInstance().getExternalContext();
		Map<String, Object> sessionMap = eContext.getSessionMap();
		sessionMap.put("MenuId", menuId); 
	}

}
